package team.seekers.catering.entity.params.add;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import team.seekers.catering.entity.temp.NutrimentListDTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * 新增用户信息PA
 */
@Data
public class FoodAddPA {

    @NotBlank(message = "食谱名称不能为空")
    @Size(max = 20, message = "食谱名称长度不能超过20")
    private String name;

    @NotBlank(message = "食谱描述不能为空")
    @Size(max = 255, message = "食谱名称长度不能超过20")
    private String description;

    @NotNull(message = "食材组成不能为空")
    private List<FoodContentListPA> contentList;

    @NotBlank(message = "请上传食谱图片")
    @Size(max = 255, message = "食谱名称长度不能超过20")
    private String picture;


    @ApiModelProperty(value = "食物总质量")
    private Integer amount;

    @ApiModelProperty(value = "食物热量")
    private Integer kal;

    @ApiModelProperty(value = "食物成本")
    private BigDecimal price;

    @ApiModelProperty(value = "蛋白质供能比")
    private BigDecimal proEr;

    @ApiModelProperty(value = "脂肪供能比")
    private BigDecimal fatEr;

    @ApiModelProperty(value = "碳水供能比")
    private BigDecimal choEr;

    @ApiModelProperty(value = "饱腹感指数")
    private BigDecimal satietyIndex;

    @ApiModelProperty(value = "营养饱和度")
    private BigDecimal nfs;

    @ApiModelProperty(value = "能量密度")
    private BigDecimal ed;

    @ApiModelProperty(value = "营养素密度")
    private List<NutrimentListDTO> nd;

    @ApiModelProperty(value = "营养参考值")
    private byte[] nrv;

}
